#ifndef CHECKABLEMENUACTION_H
#define CHECKABLEMENUACTION_H

#include <QWidgetAction>
#include <QCheckBox>

class CheckableMenuAction : public QWidgetAction
{
    Q_OBJECT

public:
    explicit CheckableMenuAction(const QString &text, QObject *parent = nullptr);
    bool isChecked() const;
    void setChecked(bool checked);

signals:
    void toggled(bool checked);

private:
    QCheckBox *checkBox;
    void setupStyleSheet();
};

#endif // CHECKABLEMENUACTION_H
